package com.xiongtian.springframework.context.annotation;

import java.lang.annotation.*;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-04-24  16:42
 * @Version: 1.0
 * @Description: 生命周期作用域注解
 * 1. singleton：单例，默认值
 * 2. prototype：原型，每次获取 Bean 时，都创建一个新的 Bean
 */

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Scope {

    String value() default "singleton";
}
